| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

ProgramSourcesHolder.h
1 // ProgramSourcesHolder.h
3 //
5
6 namespace nkGraphics
7 {
13 struct MacroEntry
14 {
15 nkMemory::String _key ;
16 nkMemory::String _value ;
17 } ;
18 }
19
20 namespace nkGraphics
21 {
25 class ProgramSourcesHolder final
26 {
27 public :
28
32 nkMemory::StringView getVertexMemory () const ;
36 nkMemory::StringView getHullMemory () const ;
40 nkMemory::StringView getDomainMemory () const ;
44 nkMemory::StringView getGeometryMemory () const ;
48 nkMemory::StringView getPixelMemory () const ;
52 nkMemory::StringView getComputeMemory () const ;
56 nkMemory::StringView getRaytracingMemory () const ;
60 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosVertex () const ;
64 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosHull () const ;
68 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosDomain () const ;
72 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosGeometry () const ;
76 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosPixel () const ;
80 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosCompute () const ;
84 const nkMemory::BufferCast<MacroEntry>& getDefineMacrosRaytracing () const ;
88 unsigned int getDefineMacroMaxNumber () const ;
92 unsigned int getDefineMacroMaxNumberPipeline () const ;
96 unsigned int getDefineMacroNumberCompute () const ;
100 unsigned int getDefineMacroNumberRaytracing () const ;
101
105 void setVertexMemory (nkMemory::StringView str) ;
109 void setHullMemory (nkMemory::StringView str) ;
113 void setDomainMemory (nkMemory::StringView str) ;
117 void setGeometryMemory (nkMemory::StringView str) ;
121 void setPixelMemory (nkMemory::StringView str) ;
125 void setComputeMemory (nkMemory::StringView str) ;
129 void setRaytracingMemory (nkMemory::StringView str) ;
136 void addDefineMacroVertex (nkMemory::StringView key, nkMemory::StringView value) ;
143 void addDefineMacroHull (nkMemory::StringView key, nkMemory::StringView value) ;
150 void addDefineMacroDomain (nkMemory::StringView key, nkMemory::StringView value) ;
157 void addDefineMacroGeometry (nkMemory::StringView key, nkMemory::StringView value) ;
164 void addDefineMacroPixel (nkMemory::StringView key, nkMemory::StringView value) ;
171 void addDefineMacroCompute (nkMemory::StringView key, nkMemory::StringView value) ;
178 void addDefineMacroRaytracing (nkMemory::StringView key, nkMemory::StringView value) ;
179
183 bool hasMinimalDefinitionsPipeline () const ;
187 bool hasMinimalDefinitionsCompute () const ;
191 bool hasMinimalDefinitionsGeometry () const ;
195 bool hasMinimalDefinitionsRaytracing () const ;
201 void copyDefinesFrom (const ProgramSourcesHolder& other) ;
202 } ;
203 }
nkGraphics::ProgramSourcesHolder::addDefineMacroPixel
void addDefineMacroPixel(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getGeometryMemory
nkMemory::StringView getGeometryMemory() const
nkGraphics::ProgramSourcesHolder::getVertexMemory
nkMemory::StringView getVertexMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosDomain
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosDomain() const
nkGraphics::ProgramSourcesHolder::getHullMemory
nkMemory::StringView getHullMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosGeometry
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosGeometry() const
nkGraphics::ProgramSourcesHolder::addDefineMacroDomain
void addDefineMacroDomain(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getDefineMacrosVertex
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosVertex() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosRaytracing
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosRaytracing() const
nkGraphics::ProgramSourcesHolder::setComputeMemory
void setComputeMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::addDefineMacroHull
void addDefineMacroHull(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsPipeline
bool hasMinimalDefinitionsPipeline() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsRaytracing
bool hasMinimalDefinitionsRaytracing() const
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsGeometry
bool hasMinimalDefinitionsGeometry() const
nkGraphics::ProgramSourcesHolder::setRaytracingMemory
void setRaytracingMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberRaytracing
unsigned int getDefineMacroNumberRaytracing() const
nkGraphics::ProgramSourcesHolder::getDefineMacrosCompute
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosCompute() const
nkGraphics::ProgramSourcesHolder::getRaytracingMemory
nkMemory::StringView getRaytracingMemory() const
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumberPipeline
unsigned int getDefineMacroMaxNumberPipeline() const
nkGraphics::ProgramSourcesHolder::setHullMemory
void setHullMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::setDomainMemory
void setDomainMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::getDefineMacrosPixel
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosPixel() const
nkGraphics::ProgramSourcesHolder::getComputeMemory
nkMemory::StringView getComputeMemory() const
nkGraphics::ProgramSourcesHolder::addDefineMacroRaytracing
void addDefineMacroRaytracing(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getPixelMemory
nkMemory::StringView getPixelMemory() const
nkGraphics::MacroEntry::_value
nkMemory::String _value
The value given to the macro.
Definition: ProgramSourcesHolder.h:16
nkGraphics::ProgramSourcesHolder::setVertexMemory
void setVertexMemory(nkMemory::StringView str)
nkGraphics::MacroEntry::_key
nkMemory::String _key
The macro key.
Definition: ProgramSourcesHolder.h:15
nkGraphics::ProgramSourcesHolder::getDefineMacroMaxNumber
unsigned int getDefineMacroMaxNumber() const
nkMemory::String
Class holding information about a string, with ownership over the data.
Definition: String.h:22
nkGraphics::ProgramSourcesHolder::copyDefinesFrom
void copyDefinesFrom(const ProgramSourcesHolder &other)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::ProgramSourcesHolder
Holds the sources of a program.
Definition: ProgramSourcesHolder.h:26
nkGraphics::ProgramSourcesHolder::addDefineMacroVertex
void addDefineMacroVertex(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::addDefineMacroGeometry
void addDefineMacroGeometry(nkMemory::StringView key, nkMemory::StringView value)
nkGraphics::ProgramSourcesHolder::getDefineMacrosHull
const nkMemory::BufferCast< MacroEntry > & getDefineMacrosHull() const
nkMemory::BufferCast
Holds a Buffer and make it easy to cast the binary data.
Definition: BufferCast.h:18
nkGraphics::ProgramSourcesHolder::getDomainMemory
nkMemory::StringView getDomainMemory() const
nkGraphics::MacroEntry
Holds information about a macro entry.
Definition: ProgramSourcesHolder.h:14
nkGraphics::ProgramSourcesHolder::hasMinimalDefinitionsCompute
bool hasMinimalDefinitionsCompute() const
nkGraphics::ProgramSourcesHolder::setPixelMemory
void setPixelMemory(nkMemory::StringView str)
nkGraphics::ProgramSourcesHolder::setGeometryMemory
void setGeometryMemory(nkMemory::StringView str)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramSourcesHolder::getDefineMacroNumberCompute
unsigned int getDefineMacroNumberCompute() const
nkGraphics::ProgramSourcesHolder::addDefineMacroCompute
void addDefineMacroCompute(nkMemory::StringView key, nkMemory::StringView value)